home *** CD-ROM | disk | FTP | other *** search
- Path: ix.netcom.com!netnews
- From: a1s@ix.netcom.com (Andrew Snyder)
- Newsgroups: comp.lang.c
- Subject: Re: prefix vs. postfix
- Date: Wed, 03 Jan 1996 21:05:23 GMT
- Organization: Netcom
- Message-ID: <4cegko$20s@ixnews5.ix.netcom.com>
- References: <00001a80+00006591@msn.com>
- NNTP-Posting-Host: ix-har5-09.ix.netcom.com
- X-NETCOM-Date: Wed Jan 03 10:07:20 AM PST 1996
- X-Newsreader: Forte Free Agent 1.0.82
-
- RNorman@msn.com (Richard Norman) wrote:
-
- >Am I the only one in the world who writes loops as:
- > for (i=0; i<i_max; ++i) ...?
- >
- >Note the prefix, ++i. Virtually all the program examples I see
- >use the postfix, i++.
-
- --snip
- >Is there a some occult force hidden here? Does someone know the
- >cultural history of this burning question?
-
- >(Please note -- I am NOT asking which form is "correct")
-
- I think it is an accident of history. Any good compiler should make
- the same code unless the side effect (++i or i++) makes a difference.
- Andrew Snyder
- a1s@ix.netcom.com
- char disclaimer[] = {'\0'}; /* I'm on cash net */
-
-